<?php

namespace app\admin\controller;

class Captcha extends Init
{
    /**
     * 图片-验证码
     */
    public function index(){
        $text="";
        app("P_mycaptcha")->CreateImage($text);
        session()->set("captcha_txt", $text);//存入session
    }
}

